package com.logic.landseaserver.models.changerent.service;

import com.logic.common.exception.BusinessException;
import com.logic.landseaserver.common.exception.LandseaBusinessException;
import com.logic.landseaserver.common.exception.LandseaException;
import com.logic.landseaserver.ws.request.CreateOffLineContractsReq;

/**
 * Created by Junny on 2017/12/5.
 */
public interface IChangeRentService {
    /**
     * 新增转租合同B
     * @param rqObj
     * @return
     * @throws LandseaBusinessException
     * @throws BusinessException
     */
    Integer createChangeRent(CreateOffLineContractsReq rqObj)throws LandseaException,BusinessException;

    void createPreBill(Integer contractId) throws LandseaException;

    boolean cancleChangeRent(Integer contractId)throws LandseaException;

    Object queryChangeContract(Integer contractId);

    void sysMoney(Integer contractId,Integer userBId)throws LandseaException;
}
